


a = None
b= 1
# print(a+1)

def fibonacci(n):
    if n <= 0:
        return 0
    elif n == 1:
        return 1
    else:
        return fibonacci(n-1) + fibonacci(n-2)

# Test fibonacci function
def test_fibonacci():
    assert fibonacci(0) == 0
    assert fibonacci(1) == 1 
    assert fibonacci(2) == 1
    assert fibonacci(3) == 2
    assert fibonacci(4) == 3
    assert fibonacci(5) == 5
    print("All fibonacci tests passed!")



test_fibonacci()
import os

def find_gifs(directory):
    gif_files = []
    for root, dirs, files in os.walk(directory):
        for file in files:
            if file.lower().endswith('.gif'):
                gif_files.append(os.path.join(root, file))
    return gif_files

# Example usage:
# gifs = find_gifs('path/to/directory')
# for gif in gifs:
#     print(gif)

ret = find_gifs("/Users/hx/e/Code/llm/rag/src/05-langchain")
print(ret)


a=1
b=2
print(a+b)
a = {"a": ["123","456"]};
for b in a["a"]:
    print(b)


def func_a():
    func_b()

def func_b():
    func_c()

def func_c():
    raise ValueError("An error occurred")

func_a()




